﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using System.Configuration;
using System.Web.Configuration;

public partial class QLNhanVien : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //SqlConnection con = new SqlConnection(WebConfigurationManager.ConnectionStrings["aaa"].ConnectionString);
        //SqlCommand cmd = new SqlCommand("select * from tbl_nhanvien", con);
        //SqlDataAdapter adap = new SqlDataAdapter(cmd);
        //DataSet ds = new DataSet();
        //adap.Fill(ds);
        QLNV nv = new QLNV();
        gvNhanvien.DataSource = nv.getAllNv();
        gvNhanvien.DataBind();
    }
    protected void gvNhanvien_Load(object sender, EventArgs e)
    {
        
    }
}